import {CameraConfigAction} from './cameraAction';

const defaultState = {
	type: 'back',
	zoom: 0,
	ratio: '4:3'
};

export default (state = defaultState, action: CameraConfigAction) => {
  switch (action.type) {
    case 'LOAD':
      return {...state, ...action.payload};
    default:
      return {...state};
  }
};
